#include "System.h"


void InitGPIO(void) 
{
   //Set LEDs to outputs and high drive strength
   PTCDD |= LED2_LOC;

   PTCDS |= LED2_LOC;
   //Set switchs to inputs
   PTADD &= ~(SW1_LOC | SW2_LOC | SW3_LOC);
   PTCDD &= ~(SW4_LOC);
   
   //Enables pullups on switches
   PTAPE |= SW1_LOC | SW2_LOC | SW3_LOC;
   PTCPE |= SW4_LOC;

  //The Mux for the external IR sensors on lowes 4 bits on port d
    PTDDD |= 0xFF;
    PTDDS = 0xFF;
    PTEDD |= 0xFF;
    PTEDS = 0xFF;
    
    //Disable the LCD Driver and allow standard Port IO
    
    LCDPEN0 = 0;
    LCDC0 = 0;
    LCDSUPPLY |= 0x3;
    LCDC1 |= 0x04;

   //LED1_OFF;
  // LED2_OFF;
  // LED3_OFF;
  // LED4_OFF;
  //
}



